package com.jizhi.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 罗兆良
 * @since 2020-11-16
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="History对象", description="")
public class History implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "病历号")
    @TableId(value = "hid", type = IdType.ID_WORKER)
    private Long hid;

    @ApiModelProperty(value = "病人id")
    private Long bid;

    @ApiModelProperty(value = "是否有过敏史")
    private String allergy;

    @ApiModelProperty(value = "不能用药品")
    private String nomedicable;

    @ApiModelProperty(value = "紧急联系人")
    private String emergency;

    @ApiModelProperty(value = "联系人电话")
    private String ephon;

    @ApiModelProperty(value = "处方")
    private Long pid;

    @ApiModelProperty(value = "医嘱")
    private Long aid;

    @ApiModelProperty(value = "检查报告单序号")
    private Long iid;

    @ApiModelProperty(value = "费用·")
    private Float fee;

    @TableField(fill = FieldFill.INSERT)//插入时操作
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @Version
    private Integer version;


}
